//招聘信息
import { RECRUIT } from './api';
import { request, METHOD } from '@/utils/request';
//添加招聘信息
export async function addRecruitApi(params) {
  return request(RECRUIT + '/create', METHOD.POST, params);
}
//删除招聘信息
export async function delRecruitApi(params) {
  return request(RECRUIT + '/delete/', METHOD.DELETE, params.id);
}
//修改招聘信息
export async function editRecruitApi(params) {
  return request(RECRUIT + '/update/', METHOD.PUT, params);
}
//获取所有招聘信息
export async function getRecruitListApi(params) {
  return request(RECRUIT + '/getAll', METHOD.GET, params);
}
//根据id查找招聘信息
export async function getRecruitByIdApi(params) {
  return request(RECRUIT + '/getById', METHOD.GET, params);
}
export default {
  addRecruitApi,
  delRecruitApi,
  editRecruitApi,
  getRecruitListApi,
  getRecruitByIdApi,
};
